local O grosspay overtime_hours absentdays sh_r_fm
foreach o of local O{
estpost tabstat `o'  if  sh_r_fm!=.   ///
, listwise statistics(N mean sd p10 p25 median p75 p90)  columns(statistics)
esttab, cells("count(fmt(%9.0gc)) mean(fmt(a2)) sd(fmt(a2)) p10(fmt(a2)) p25(fmt(a2)) p50(fmt(a2)) p75(fmt(a2)) p90(fmt(a2))") nomtitle nonumber noobs label varwidth(24) tex fragment
}


eststo O_TB5_C: estpost tabstat `O' if sh_r_fm!=., statistics(N mean sd p10 p25 median p75 p90) columns(statistics)
esttab O_TB5_C using "${tables}\TableB5PanelC.tex", cells("count(fmt(%9.0gc)) mean(fmt(a2)) sd(fmt(a2)) p10(fmt(a2)) p25(fmt(a2)) p50(fmt(a2)) p75(fmt(a2)) p90(fmt(a2))")  nomtitles label nonumbers noobs unstack replace posthead(" ") nodep collabels(none) prehead(" ") postfoot(" ")
  